package com.struct.graph.login
{
	import com.collection.DataWorkerCollection;
	import com.collection.FactoryCollection;
	
	import flash.display.BitmapData;
	import flash.display.DisplayObjectContainer;
	import flash.events.MouseEvent;
	import flash.utils.Dictionary;
	
	import sacu.s.worker.GraphWorker;
	
	public class LoginGraphWorker extends GraphWorker
	{
		private var _base:LoginFrame;
		public function LoginGraphWorker(id:String, base:DisplayObjectContainer)
		{
			super(id, base);
			_base = base as LoginFrame;
			_base.btnLogin.addEventListener(MouseEvent.CLICK, click);
		}
		private function click(e:MouseEvent):void{
			factory.disposeFactory();
			FactoryCollection.createRole.startFactory();
		}
	}
}